package movee.domain.api;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 *
 *
 * @author movee
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class CountedResponseData<T> extends ResponseData<T> {

    @JsonProperty(index = 1)
    private Long totalCount;

    public CountedResponseData(Long totalCount, T data) {
        super(data);
        this.totalCount = totalCount;
    }

    public Long getTotalCount() {
        return totalCount;
    }

}
